<script>
	$(document).ready(function() {
		$('#dari').change(function() {  
			var dari = $('#dari').val(); 
			$.ajax({ 
				type: 'POST', 
				url: 'module/mod_umur/js/cek_umur.php', 
				data: 'dari=' + dari,
				success: function(response) { 
					$('.hasil1').html(response); 
				}
			});
		});
		
		$('#sampai').change(function() {  
			var sampai = $('#sampai').val(); 
			$.ajax({ 
				type: 'POST', 
				url: 'module/mod_umur/js/cek_umur.php', 
				data: 'sampai=' + sampai, 
				 
				success: function(response) { 
					$('.hasil2').html(response); 
				}
			});
		});
	});
</script>
<div id="tiga_ba">
	<div id="tiga_baa">Tambah Umur</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
            
<form action="utama.php?module=mod_umur&act=simpan" onsubmit="return gsValidate('umur|dari|sampai','Rentang Umur Harus Diisi|Dari Harus Diisi|Sampai Harus Diisi','required|required_numeric|required_numeric');" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Rentang Umur</td>
			<td>
				<input name="umur" type="text" class="input2" id="umur" maxlength="50" />
				<span class="red">*</span>
			</td>
		</tr>
		<tr>
			<td>Dari</td>
			<td>
				<input name="dari" type="text" class="input2" id="dari" maxlength="11" />
				<span class="red">*</span>
				<span class="hasil1"></span>
			</td>
		</tr>
		<tr>
			<td>Sampai</td>
			<td>
				<input name="sampai" type="text" class="input2" id="sampai" maxlength="11"/>
				<span class="red">*</span>
				<span class="hasil2"></span>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Simpan" /></td>
		</tr>
	</table>                
</form>		
            
        